package org.springblade.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CodeMsg {
	//通用异常
	SUCCESS(0, "success"),

	SERVER_ERROR(500100, "服务端异常"),

	PLASE_LOGIN(1, "请登录"),

	//注意  %s ，格式化字符,
	SERVER_BIND_ERROR(500101, "服务端绑定异常:%s"),

	//用户模块 5002X,
	USER_USERNAME_AND_EMAIL_IS_ARE(500201, "账号或者邮箱重复！"),

	USER_EMAIL_AND_ONEEMAIL_IS_ARE(500202, "修改的邮箱和本人邮箱一致！"),

	USER_EMAIL_OTHERS_IS_V(500203, "此邮箱已经被别人绑定！"),

	USER_PLASE_V_USERNAME_AND_PASSWORD(500204, "请绑定用户名,密码！"),

	USER_V_USERNAME_IS_ARE(500205, "绑定账号存在"),

	USER_OLADE_PASSWORD_ERROR(500206, "老密码错误"),

	USER_EMIAL_V_ERROR(500207, "邮箱绑定失败"),
	TAG_CLICK_EXISTS_ERROR(500208, "不可以刷点击量哦"),
	TAG_EXISTS_ERROR(500209, "此标签不存在"),
	TAG_EXISTS_CREATE_ERROR(500217, "此分类已经存在"),
	BLOG_CATEGORYS_EXISTS_ERROR(500210, "此分类不存在"),
	BLOG_CATEGORYS_CREATE_EXISTS_ERROR(500211, "此分类已经存在"),
	BLOG_CATEGORYS_CLICK_EXISTS_ERROR(500212, "不可以刷点击量哦"),
	BLOG_CLICK_EXISTS_ERROR(500213, "不可以刷点击量哦"),
	SUBJECT_ARRAY_FROMINDEX(500214, "专题下标越界"),
	SUBJCET_EXISTS_ERROR(500215, "此专题不存在"),
	SUBJECT_CLICK_EXISTS_ERROR(500216, "不可以刷点击量哦"),
	SUBJECT_EXISTS_CREATE_ERROR(500218, "此专栏已经存在"),
	BLOG_EXISTS_ERROR(500219, "此博客不存在"),
	BLOG_COLLECT_YES_ERROR(500220, "此博客已经收藏了"),
	BLOG_COLLECT_NOT_USER_ERROR(500221, "不是本人收藏,或者收藏ID不存在"),
	//网站管理模块
	MANAGE_IMG_TYPE_ERROR(500420, "上传失败，文件类型不匹配"),
	MANAGE_IMG_DELETE_ERROR(500501, "文件删除失败");


	final int code;
	final String msg;


}
